package com.sxt.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {
	
	public static final ResultObj  LOGIN_SUCCESS=new ResultObj(Constast.OK, "登陆成功",0);
	public static final ResultObj  LOGIN_ERROR_PASS=new ResultObj(Constast.ERROR, "登陆失败,用户名或密码不正确",0);
	public static final ResultObj  LOGIN_ERROR_CODE=new ResultObj(Constast.ERROR, "登陆失败,验证码不正确",0);
	
	public static final ResultObj  UPDATE_SUCCESS=new ResultObj(Constast.OK, "更新成功",0);
	public static final ResultObj  UPDATE_ERROR=new ResultObj(Constast.ERROR, "更新失败",0);
	public static final ResultObj  UPDATE_ERRORQ=new ResultObj(Constast.ERROR, "发布的已审批数据不能超过5条",0);
	public static final ResultObj  UPDATE_TIME=new ResultObj(Constast.ERROR, "更新失败,时间段有重复",0);
	
	public static final ResultObj  ADD_SUCCESS=new ResultObj(Constast.OK, "添加成功",0);
	public static final ResultObj  ADD_ERROR=new ResultObj(Constast.ERROR, "添加失败",0);
	public static final ResultObj  ADD_TIME=new ResultObj(Constast.ERROR, "添加失败,时间段有重复",0);
	
	public static final ResultObj  DELETE_SUCCESS=new ResultObj(Constast.OK, "删除成功",0);
	public static final ResultObj  DELETE_ERROR=new ResultObj(Constast.ERROR, "删除失败",0);
	public static final ResultObj  DELETE_ERR=new ResultObj(Constast.ERROR, "删除失败,参数为空",0);
	
	public static final ResultObj  RESET_SUCCESS=new ResultObj(Constast.OK, "重置成功",0);
	public static final ResultObj  RESET_ERROR=new ResultObj(Constast.ERROR, "重置失败",0);
	
	public static final ResultObj  DISPATCH_SUCCESS=new ResultObj(Constast.OK, "分配成功",0);
	public static final ResultObj  DISPATCH_ERROR=new ResultObj(Constast.ERROR, "分配失败",0);
	
	public static final ResultObj  OPERATE_SUCCESS=new ResultObj(Constast.OK, "操作成功",0);
	public static final ResultObj  OPERATE_ERROR=new ResultObj(Constast.ERROR, "操作失败",0);
	
	public static final ResultObj  PUBLISH_SUCCESS=new ResultObj(Constast.OK, "发布成功",0);
	public static final ResultObj  PUBLISH_ERROR=new ResultObj(Constast.ERROR, "发布失败",0);
	public static final ResultObj  PUBLISH_NO=new ResultObj(Constast.ERROR, "发布失败,产品未审批",0);
	private Integer code;
	private String msg;
	private Integer id;
	
	

}
